import request from '@/utils/request'

// 查询院校数据列表
export function listColleges(query) {
  return request({
    url: '/zyt/colleges/list',
    method: 'get',
    params: query
  })
}

// 查询院校数据详细
export function getColleges(collegesId) {
  return request({
    url: '/zyt/colleges/' + collegesId,
    method: 'get'
  })
}

// 新增院校数据
export function addColleges(data) {
  return request({
    url: '/zyt/colleges',
    method: 'post',
    data: data
  })
}

// 修改院校数据
export function updateColleges(data) {
  return request({
    url: '/zyt/colleges',
    method: 'put',
    data: data
  })
}

// 删除院校数据
export function delColleges(collegesId) {
  return request({
    url: '/zyt/colleges/' + collegesId,
    method: 'delete'
  })
}
